<template>
  <div class="app-container">
    <div class="headertit clearfix">
      <span>布点模板</span>
    </div>
    <div class="btnGroup">
      <el-button @click="distributionClick">布点方式</el-button>
    </div>
    <div class="headertit clearfix">
      <span>字典模板</span>
    </div>
    <div class="btnGroup">
      <el-button @click="textClick">文字模板</el-button>
      <el-button @click="picClick">图片模板</el-button>
    </div>
    <div class="headertit clearfix">
      <span>方案报告模板</span>
    </div>
    <div class="btnGroup">
      <el-button @click="fanganClick">方案模板</el-button>
      <el-button @click="baogaoClick">报告模板</el-button>
    </div>
  </div>
</template>
<script>
export default {
  name: "TempDetail",
  props: {
    TempType: {
      type: Number,
      default: 1
    }
  },


  methods: {
    distributionClick() {
      switch (this.TempType) {
        case 1:
          this.$router.push({
            path: "/validate/incubator/distributionTemp"
          });
          break;
        case 2:
          this.$router.push({
            path: "/validate/car/distributionTemp"
          });
          break;
        default:
          this.$router.push({
            path: "/validate/warehouse/distributionTemp"
          });
      }
    },
    textClick() {
      switch (this.TempType) {
        case 1:
          this.$router.push({
            path: "/validate/incubator/textTemp"
          });
          break;
        case 2:
          this.$router.push({
            path: "/validate/car/textTemp"
          });
          break;
        default:
          this.$router.push({
            path: "/validate/warehouse/textTemp"
          });
      }
    },
    picClick() {
      switch (this.TempType) {
        case 1:
          this.$router.push({
            path: "/validate/incubator/picTemp"
          });
          break;
        case 2:
          this.$router.push({
            path: "/validate/car/picTemp"
          });
          break;
        default:
          this.$router.push({
            path: "/validate/warehouse/picTemp"
          });
      }
    },
    fanganClick() {
      switch (this.TempType) {
        case 1:
          this.$router.push({
            path: "/validate/incubator/fanganTemp"
          });
          break;
        case 2:
          this.$router.push({
            path: "/validate/car/fanganTemp"
          });
          break;
        default:
          this.$router.push({
            path: "/validate/warehouse/fanganTemp"
          });
      }
    },
    baogaoClick() {
      switch (this.TempType) {
        case 1:
          this.$router.push({
            path: "/validate/incubator/reportTemp"
          });
          break;
        case 2:
          this.$router.push({
            path: "/validate/car/reportTemp"
          });
          break;
        default:
          this.$router.push({
            path: "/validate/warehouse/reportTemp"
          });
      }
    },
    
  }
};
</script>
<style lang="scss" scoped>
.btnGroup {
  padding: 20px;
}
</style>

